package sasku.client.core.message.listener;

import sasku.client.core.connection.ServerConnection;
import sasku.client.core.message.Message;
import sasku.client.core.message.ServerMessage;

public class PingMessageListener implements MessageListener {

	public void update(ServerMessage message, ServerConnection connection) {
		if (message.getMessage().equals("PING")) {
			connection.sendMessage(new Message("PONG"));
		}
		
	}

}
